package cn.mong.util.modelexcel;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 头部定制信息
 * @author mengxianming
 *
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class HeaderCustomInfo{
	private Object val;
	private int xspan;
	
	private HeaderCell headerCell;
	
	
	public static HeaderCustomInfo fromHeaderCell(HeaderCell hc) {
		HeaderCustomInfo ins = new HeaderCustomInfo();
		ins.val = hc.getVal();
		ins.xspan = hc.getXspan();
		ins.headerCell = hc;
		return ins;
	}


	public HeaderCustomInfo(Object val, int xspan) {
		this.val = val;
		this.xspan = xspan;
	}
}